<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/taglib.jsp"%>
<div>
	<table class="hs-table">
		<tbody>
			<tr>
				<th>用户名</th>
				<th>角色</th>
				<th>操作</th>
			</tr>
			<c:forEach var="user" items="${dataPaging.result}">
				<tr>
					<td><c:out value="${user.username}" /></td>
					<td><c:forEach var="userRole" items="${userRoles}">
							<c:if test="${user.id eq userRole.userId}">
								<c:forEach var="role" items="${roles}">
									<c:if test="${role.id eq userRole.roleId}">
										<c:out value="${role.cnname}" />
									</c:if>
								</c:forEach>
							</c:if>
						</c:forEach></td>
					<td><a href="${admin}/manager/user/edit/${user.id}">修改</a>
						<a href="${admin}/manager/user/delete/${user.id}"
						class="delete">删除</a></td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
	<hs:pager dataPaging="${dataPaging}" action="${admin}/manager/user"
		showPageNumber="10" />
		<a href="${admin}/manager/user/create">添加</a>
</div>